import reducer from "./reducer";
// 导入仓库生成器  使用中间件  applyMiddleware
import { createStore, applyMiddleware } from "redux";
// 引入异步action的库  redux-thunk
import reduxThunk from "redux-thunk";

// 创建store
const store = createStore(reducer, applyMiddleware(reduxThunk));
export default store;